<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk" lang="pt_BR">

<h:head>
<link rel="shortcut icon" type="image/x-icon" href="#{facesContext.externalContext.requestContextPath}/template/imagens/favicon2.png"></link>
	<title>SysReserva</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link
		href="#{facesContext.externalContext.requestContextPath}/template/CssGeral/geral.css"
		rel="stylesheet" type="text/css" />
		<script language="javascript" src="#{facesContext.externalContext.requestContextPath}/js/locales.js"/>
</h:head>
<h:body>
	<div id="geral">
		<ui:insert name="topo">
			<div id="topo">
				<div id="topoSGAC">
				<p:commandLink action="/restrito/telaInicial.xhtml" title="Pagina inicial">
								<p:graphicImage url="/template/imagens/agendaicon.png"
								style="width: 146px; height: 70px;" styleClass="imagemIndex" />
				</p:commandLink>
				</div>
			</div>
		</ui:insert>

		<div id="menu">
			<ui:insert name="menu">
				<ui:include src="menu.xhtml"></ui:include>
			</ui:insert>
		</div>

		<div id="conteudo">
			<ui:insert name="mensagemAjax">
				<p:ajaxStatus onstart="statusDialog.show();"
					onsuccess="statusDialog.hide();" />
				<p:dialog modal="true" widgetVar="statusDialog"
					header="Carregando ..." draggable="false" closable="false">
					<h:graphicImage url="/template/imagens/ajax_progress.gif" />
				</p:dialog>
			</ui:insert>

			<ui:insert name="bodyexterno">

				<ui:insert name='cabecalho' />
				<ui:insert name="mensagens">
					<h:form>
						<p:messages id="mensagem" closable="true"/>
					</h:form>
				</ui:insert>

				<ui:insert name="body" />
			</ui:insert>
		</div>

		<div class="clear" />

		<ui:insert name="rodape">
			<div id="rodape">
				<div id="rodapeUsuario">
					<p:outputLabel value="Usuario: " />
					<p:outputLabel value="#{usuarioBean.usuarioLogado.nome}" />
				</div>
				<div id="rodapeSGAC">
				<p:outputLabel value="Sistema de reservas"/>
				</div>
			</div>
		</ui:insert>
	</div>
</h:body>
</html>